package com.cofi.vueelementadminserver.entity.base;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xyh
 * @date 2024-12-02
 * @description 实体基础类
 */
@Getter
@Service
@NoArgsConstructor
@AllArgsConstructor
public abstract class BaseEntity implements Serializable {
    //主键
//    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("id")
    private String id;
}
